package com.jee.mql.business;

import java.util.List;

import com.jee.mql.dao.UserDao;
import com.jee.mql.dao.UserDaoJdbc;
import com.jee.mql.model.User;

public class UserManager {
	
	private UserDaoJdbc dao;
	
	
	public UserManager() {
		dao= new UserDaoJdbc();
	}
	
	public void ajouter(User u){
		dao.ajouterUser(u);
	}
	public List<User> afficher (){
		return dao.afficherUsers();
		
	}
	public void supprimer(String login){
		dao.supprimerUser(login);
		
	}
	public User recherhcer (String login ){
		return dao.rechercherUser(login);
	}
	public void  modifier (User u , int pos){
		dao.modifierUser(u, pos);
	}

}
